<?php
class Config extends AppModel{
	public $name='Config';
	public $actsAs = array('Tree');
	public $validate = array(		
		'key'=>'notEmpty',
		'value'=>'notEmpty',
	);
	
	public $hasMany = array(
        'Children' => array(
            'className'     => 'Config', 
			'foreignKey'=>'parent_id',
            'dependent'=> true
        )
    );  
	
}
?>
